<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="bootstrap/css/bootstrap.css">
    <link rel="stylesheet" href="font-awesome-4.6.3/css/font-awesome.css">
    <style>
        .btn01 {
            width: 100px;
            overflow: hidden;
            position: relative;
            -webkit-box-shadow: 1px 1px 3px 0 rgba(0, 0, 0, 0.3);
            -moz-box-shadow: 1px 1px 3px 0 rgba(0, 0, 0, 0.3);
            box-shadow: 1px 1px 3px 0 rgba(0, 0, 0, 0.3);
        }
        .btn01 img {
            position: relative;
            width: 100px;
            top: 0;
            left: 0;
        }
        .btn01 .ovrly {
            background: rgba(0, 0, 0, 0.5);
            height: 100px;
            left: 0;
            top: -100%;
            width: 100px;
            position: absolute;
            -webkit-transition: all 0.5s;
            -moz-transition: all 0.5s;
            -o-transition: all 0.5s;
            transition: all 0.5s;
        }
        .btn01 .buttons {
            position: absolute;
            top: -100%;
            left: 50%;
            -webkit-transition: all 0.5s;
            -moz-transition: all 0.5s;
            -o-transition: all 0.5s;
            transition: all 0.5s;
            -webkit-transform: translate(-50%, -50%);
            -moz-transform: translate(-50%, -50%);
            -ms-transform: translate(-50%, -50%);
            -o-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
        }
        .btn01 .buttons .fa {
            margin: 0 1px;
            color: rgb(256, 256, 256);
            -webkit-box-shadow: 0 0 1px rgba(0, 0, 0, 0.3);
            -moz-box-shadow: 0 0 1px rgba(0, 0, 0, 0.3);
            box-shadow: 0 0 1px rgba(0, 0, 0, 0.3);
            -webkit-border-radius: 50%;
            -moz-border-radius: 50%;
            border-radius: 50%;
            display: inline-block;
            line-height: 30px;
            font-size: 20px;
            text-align: center;
            text-decoration: none;
            width: 20px;
            height: 20px;
        }
        .fa-trash{
            background-image: url(/image/delete.svg);
            background-size: 50%;
            background-position: center center;
            background-repeat: no-repeat;
        }
        .fa-search{
            background-image: url(/image/search.svg);
            background-size: 25%;
            background-position: center center;
            background-repeat: no-repeat;
        }
        .btn01:hover .buttons {
            top: 45%;
        }
        .btn01:hover .ovrly {
            top: 0;
        }
        label#username:hover{cursor:pointer;}
        a#delete:hover,a#view:hover{cursor:pointer;}

    </style>

    <title>混合布局</title>

</head>
<body>

    <div class="item">
        <div class="btn01" id="name">
            <img src="image/dddddd.png">
            <div class="ovrly"></div>
            <div class="buttons">
                <a class="fa fa-trash" id="delete" title="删除"></a>
                <a class="fa fa-search" id="view" title="查看"></a>
            </div>
        </div>
    </div>
    <label id="username">dddddd</label>
<button type="button" id="btn-01">按钮</button>
</body>
<script src="jQuery/jquery-2.2.3.min.js"></script>
<script src="buju.js"></script>
</html>